package com.sxjh.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxjh.entity.Material;
import com.sxjh.entity.param.MaterialBindLoadListParam;
import com.sxjh.entity.result.MaterialGoodsResult;
import com.sxjh.mapper.MateriaLoadMapper;
import com.sxjh.mapper.MateriaUnloadMapper;
import com.sxjh.mapper.MaterialMapper;
import com.sxjh.service.MaterialService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 物料  服务实现类
 * </p>
 *
 * @author zixin
 * @since 2021-06-05
 */
@Service
public class MaterialServiceImpl extends ServiceImpl<MaterialMapper, Material> implements MaterialService {

  @Autowired
  private MateriaLoadMapper materiaLoadMapper;

  @Autowired
  private MateriaUnloadMapper materiaUnloadMapper;

  @Override
  public IPage<MaterialGoodsResult> materialLoadList(IPage iPage, MaterialBindLoadListParam param) {
    return materiaLoadMapper.list(iPage ,param);
  }

  @Override
  public IPage<MaterialGoodsResult> materialUnloadList(IPage iPage,MaterialBindLoadListParam param) {
    return materiaUnloadMapper.list(iPage ,param);
  }
}
